//
//  EventDetailAPIRequest.h
//  ConvenientlyTake
//
//  Created by 森鑫 on 2022/12/23.
//

#import "TGNetworkManager.h"

NS_ASSUME_NONNULL_BEGIN

@interface EventDetailAPIRequest : TGNetworkManager

///  事件中心-事件详情
/// - Parameters:
///   - eventId: 事件ID true
///   - success: success
///   - fail: fail
+(NSURLSessionDataTask *)GETEventDetailsWithEventId:(NSString *)eventId
                                            success:(LZTResponseSuccess)success
                                               fail:(LZTResponseFailure)fail;

///  操作日志
/// - Parameters:
///   - eventId: 事件ID  true
///   - success: success
///   - fail: fail
+(NSURLSessionDataTask *)GETEventLogWithEventId:(NSString *)eventId
                                            success:(LZTResponseSuccess)success
                                               fail:(LZTResponseFailure)fail;


/// ---------------------- 用户归属部门业务-分页查询列表
/// - Parameters: 本局委人员
///   - page: 分页 true
///   - pageSize: 条数 true
///   - deptId: 部门ID false
///   - success: success
///   - fail: fail
+(NSURLSessionDataTask *)GETEventfindUserListByPage:(NSInteger)page
                                           pageSize:(NSInteger)pageSize
                                             deptId:(NSString *)deptId
                                            success:(LZTResponseSuccess)success
                                               fail:(LZTResponseFailure)fail;

//获取可以指派的部门 县局委人员
+(NSURLSessionDataTask *)GETEnableAssignDepartmentSuccess:(LZTResponseSuccess)success
                                                     fail:(LZTResponseFailure)fail;

/// ----------------审核
///  审核通过
/// - Parameters:
///   - auditTaskId: 任务ID  true
///   - disposalDesc: 处置描述 false
///   - imagesList: 照片 false
///   - success: success
///   - fail: fail
+(NSURLSessionDataTask *)POSTWorkingAuditApprovehAuditTaskId:(NSString *)auditTaskId
                                                  disposalDesc:(NSString *)disposalDesc
                                                    imagesList:(NSArray *)imagesList
                                                        success:(LZTResponseSuccess)success
                                                           fail:(LZTResponseFailure)fail;


/// ---------------审核驳回
/// - Parameters:
///   - auditTaskId: 任务ID true
///   - rejectionReason: 驳回原因 true
///   - success: sucess
///   - fail: fail
+(NSURLSessionDataTask *)POSTWorkingAuditRejectWithAuditTaskId:(NSString *)auditTaskId
                                                                       rejectionReason:(NSString *)rejectionReason
                                                                               success:(LZTResponseSuccess)success
                                                                                  fail:(LZTResponseFailure)fail;


/// 指派驳回
/// - Parameters:
///   - eventId: 事件ID true
///   - rejectionReason: 驳回原因 true
///   - success: success
///   - fail: fail
+(NSURLSessionDataTask *)POSTworkingAssignRejectWithEventId:(NSString *)eventId
                                            rejectionReason:(NSString *)rejectionReason
                                                    success:(LZTResponseSuccess)success
                                                       fail:(LZTResponseFailure)fail;






// ------------------------- 处置

/// 保存
/// - Parameters:
///   - eventId: 事件ID true
///   - disposalDesc: 处置描述 false
///   - imagesList: 照片 false
///   - success: sucess
///   - fail: fail
+(NSURLSessionDataTask *)POSTWorkingDisposalSaveWithEventId:(NSString *)eventId
                                                disposalDesc:(NSString *)disposalDesc
                                                  imagesList:(NSArray *)imagesList
                                                     success:(LZTResponseSuccess)success
                                                        fail:(LZTResponseFailure)fail;


/// 提交
/// - Parameters:
///   - eventId: 事件ID true
///   - disposalDesc: 处置描述 false
///   - imagesList: 照片 false
///   - success: sucess
///   - fail: fail
+(NSURLSessionDataTask *)POSTWorkingDisposalSubmmitWithEventId:(NSString *)eventId
                                                    disposalDesc:(NSString *)disposalDesc
                                                      imagesList:(NSArray *)imagesList
                                                         success:(LZTResponseSuccess)success
                                                            fail:(LZTResponseFailure)fail;


/// --------------指派
/// 指派到指定的用户
/// - Parameters:
///   - assignTaskId: 指派任务ID
///   - userId: 指派到的用户
///   - requiredDisposeCompletionTime: 要求处置完成时间
///   - success: sucess
///   - fail: fail
+(NSURLSessionDataTask *)POSTWorkingAssignToUserWithAssignTaskId:(NSString *)assignTaskId
                                                          userId:(NSString *)userId
                                   requiredDisposeCompletionTime:(NSString *)requiredDisposeCompletionTime
                                                         success:(LZTResponseSuccess)success
                                                            fail:(LZTResponseFailure)fail;

/// 指派给部门
/// - Parameters:
///   - assignTaskId: 指派任务ID
///   - deptId: 指派到的部门
///   - requiredDisposeCompletionTime: 要求处置完成时间
///   - success: sucess
///   - fail: fail
+(NSURLSessionDataTask *)POSTWorkingAssignToDeptWithAssignTaskId:(NSString *)assignTaskId
                                                          deptId:(NSString *)deptId
                                   requiredDisposeCompletionTime:(NSString *)requiredDisposeCompletionTime
                                                         success:(LZTResponseSuccess)success
                                                            fail:(LZTResponseFailure)fail;

/// 获取事件状态
/// - Parameters:
///   - sucess: success
///   - fail: fail
+(NSURLSessionDataTask *)GETEventStateSuccess:(LZTResponseSuccess)success fail:(LZTResponseFailure)fail;

@end

NS_ASSUME_NONNULL_END
